<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>11-基础选择器</title>
    <style>
        div {
            color: red;
        }
        h1 {
            color: blueviolet;
        }
        /* 定义 类名 */
        .div2 {
            color: seagreen;
        }
        .span1 {
            font-size: 50px;
        }
        .bg {
            background: skyblue;
        }
        /* 3、id选择器 */
        #span-id{
            border: 3px dashed red;
        }
    </style>
</head>
<body>
    <!-- 1、标签选择器 -->
    <div>这是div标签1</div>
    <!-- 2、类选择器 -->
     <!-- 谁调用,谁生效 -->
    <div class="div2">这是div标签2</div>
    <div class="div2">这是div标签3</div>
    <h1 class="span1 div2 bg">这是H1标签</h1>
    <p class="name-pa-aa-01">这是p标签</p>
    <span class="span1" id="span-id">这是span标签</span>
</body>
</html>